﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace secuerFTP
{
    public class ServerConfig
    {
        private Int32 ServerPort;
        private Int32 ServerDataPort;
        private UInt64 PocketBufferLength;
        private String ServerDirectory;

        public ServerConfig(Int32 port, Int32 dataPort, UInt64 length, String directory)
        {
            this.ServerPort = port;
            this.PocketBufferLength = length;
            this.ServerDirectory = directory;
            this.ServerDataPort = dataPort;
        }

        public ServerConfig(ServerConfig serverConfig)
        {
            this.ServerPort = serverConfig.ServerPort;
            this.PocketBufferLength = serverConfig.PocketBufferLength;
            this.ServerDirectory = serverConfig.ServerDirectory;
        }

        public void SetServerPort(Int32 port)
        {
            this.ServerPort = port;
        }
        public Int32 GetServerPort()
        {
            return this.ServerPort;
        }
        public void SetPocketBufferLength(UInt64 length)
        {
            this.PocketBufferLength = length;
        }
        public UInt64 GetPocketBufferLength()
        {
            return this.PocketBufferLength;
        }
        public void SetServerDirection(String direction)
        {
            this.ServerDirectory = direction;
        }
        public String GetServerDirection()
        {
            return this.ServerDirectory;
        }
        public void SetServerDataPort(Int32 port)
        {
            this.ServerDataPort = port;
        }
        public Int32 GetServerDataPort()
        {
            return this.ServerDataPort;
        }
    }
}
